package com.avic.rong.api;

import com.avic.rong.wedgit.StringUtil;
import com.example.minato.minastore.BaseApi;
import com.example.minato.minastore.listener.HttpOnNextListener;
import com.trello.rxlifecycle2.components.support.RxAppCompatActivity;

import io.reactivex.Observable;
import retrofit2.Retrofit;

public class CollectThumbNumApi extends BaseApi {

    private String url;
    private int ansId;

    public void setArgument(String url,int ansId){
        this.url = url;
        this.ansId = ansId;
    }

    public CollectThumbNumApi(RxAppCompatActivity rxAppCompatActivity, HttpOnNextListener listener) {
        super(rxAppCompatActivity, listener);
    }

    @Override
    public Observable getObservable(Retrofit retrofit) {
        HttpPostService httpPostService = retrofit.create(HttpPostService.class);
        return httpPostService.collectThumbNum(url,ansId);
    }
}
